<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('user_lists',['aid'=>$aid])}">联系人列表</a></li>
			<li class="active"><a href="">添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('user_add')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" required name="name">
				</div>
			</div>
			<eq name="aid" value="0">
			<div class="form-group">
				<label for="input-pid" class="col-sm-2 control-label"><span class="form-required">*</span>所属机构</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" required value="" id="p_select"
						   placeholder="请选择所属机构" onclick="doSelectLayer(this);"
						   data-url="{:url('select')}" data-id="input-pid" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="" name="pid"
						   id="input-pid"/>
				</div>
			</div>
			</eq>
			<div class="form-group">
				<label for="input-tel" class="col-sm-2 control-label">办公电话</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-tel"  name="tel">
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label">手机号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-phone" name="phone">
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="remark" class="form-control" id="textarea-remark" rows="3"></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="aid" value="{$aid}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>